<template>
	<view>
		<view class="top">
			<view class="title">联创收入</view>
			<view class="sta">
				<view class="item">
					<view class="num">{{account.month_award}}</view>
					<view class="txt">当月累计</view>
				</view>
				<view class="item" @click="navTo('/pages/member/wallet/myLog?pageType=bean')">
					<view class="num">{{account.bean_value}}</view>
					<view class="txt">冻结金额</view>
				</view>
				<view class="item" @click="navTo('/pages/member/wallet/myLog?pageType=balance')">
					<view class="num">{{account.cha_amount}}</view>
					<view class="txt">已退差额</view>
				</view>
				<view class="item" @click="navTo('/pages/member/wallet/myLog?pageType=balance')">
					<view class="num">{{account.team_al_award}}</view>
					<view class="txt">结算累计</view>
				</view>
			</view>
		</view>
		<view class="list">

			<view class="item" @click="navTo('/pages/user/lc/order')">
				<view class="icon"><image src="../../../static/public/images/income2.png" mode="aspectFill"></image></view>
				<view class="right">
					<view class="tops"><text class="t">团队业绩奖励</text></view>
					<view class="bottom">
						<view class="b"><text class="s">当月订单</text><text class="y">{{account.month_num}}</text><text class="u">单</text></view>
						<view class="b"><text class="s">总订单</text><text class="y">{{account.team_total}}</text><text class="u">单</text></view>
						<view class="b"><text class="s">当月累计</text><text class="y">{{account.month_award}}</text><text class="u">元</text></view>
						<view class="b"><text class="s">总累计</text><text class="y">{{account.team_total_award}}</text><text class="u">元</text></view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			let that = this;
			return {
				account: {},
			}
		},
		onLoad() {

		},
		onShow() {
			this.app.isLogin(this); //强制登陆
			this.setting = uni.getStorageSync("setting");
			this.$u.post('member/api.wallet/getLcIncome').then(res => {
				this.account = res.data
			}).catch(e => {
			});
		},
		onReady() {},
		methods: {}
	}
</script>

<style lang="scss">
	page{
		background-color: #FFFFFF;
	}
	.top{
		margin: 20rpx;
		background-color: #da3535;
		color: #FFFFFF;
		border-radius: 20rpx;
		padding: 30rpx 0;
		.title{
			text-align: center;
		}
		.sta{
			display: flex;
			margin-top: 30rpx;
			.item{
				width: 50%;
				text-align: center;
				.txt{
					font-size: 28rpx;
				}
				.num{
					font-size: 38rpx;
					font-weight: bold;
				}
			}
		}
	}
	.list{
		margin: 40rpx 20rpx 20rpx 20rpx;
		.item{
			display: flex;
			margin-bottom: 20rpx;
			border: 1px solid #e1e1e1;
			border-radius: 16rpx;
			padding: 20rpx;
			.icon{
				image{
					
				}
			}
			.right{
				margin-left: 40rpx;
				width: 100%;
				.tops{
					margin-top: 6rpx;
					.t{
						margin-right: 50rpx;
					}
					.n{
						color: #da3535;
						font-weight: bold;
					}
				}
				.bottom{
					width: 100%;
					display: flex;
					margin-top: 16rpx;
					justify-content: space-between;
					flex-wrap: wrap;
					.b{
						width: 50%;
						// margin-right: 80rpx;
						.s{
							font-size: 24rpx;
							color: #999;
							margin-right: 10rpx;
						}
						.y{
							color: #FF9900;
							font-weight: bold;
						}
						.u{
							font-size: 24rpx;
							color: #999;
							margin-left: 6rpx;
						}
					}
				}
			}
		}
	}
</style>
